<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户信息</title>
    <style>
        body { font-family: Arial, sans-serif; padding: 20px; }
        .user-info { max-width: 500px; margin: 0 auto; border: 1px solid #eee; padding: 20px; }
        .info-item { margin: 15px 0; }
        button { padding: 8px 15px; background: #f44336; color: white; border: none; cursor: pointer; }
        button:hover { background: #d32f2f; }
        .back-link { display: block; margin-top: 20px; color: #0066cc; text-decoration: none; }
    </style>
</head>
<body>
    <div class="user-info">
        <h2>个人信息</h2>
        <div class="info-item">
            <strong>用户名：</strong> testuser
        </div>
        <div class="info-item">
            <strong>手机号：</strong> 138****1234
        </div>
        <div class="info-item">
            <strong>注册时间：</strong> 2023-01-15
        </div>
        <div class="info-item">
            <strong>会员等级：</strong> 普通会员
        </div>
        <button onclick="logout()">退出登录</button>
        <a href="index.html" class="back-link">返回首页</a>
    </div>

    <script>
        function logout() {
            if (confirm('确定要退出登录吗？')) {
                window.location.href = 'login.html';
            }
        }
    </script>
</body>
</html>